home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 003-desktop.lzm / usr / bin / kdeinstallktheme < prev    next >
Encoding:
Text File  |  2005-09-10  |  399 b   |  15 lines

  1. #!/bin/sh
  2. # Installs a KDE theme (into the user's theme dir)
  3. appsdir=`kde-config --path data | sed -e 's/:.*//'`
  4. themedir=$appsdir"/kthememanager/themes/"`basename "$1" ".kth"`
  5. if test -n "$appsdir"; then
  6.   test -d "$themedir" || mkdir -p "$themedir"
  7.   #echo "$themedir"
  8.   cp -f "$1" "$themedir"
  9.   cd "$themedir"
  10.   tarball=`basename "$1"`
  11.   #echo $tarball
  12.   tar xzf "$tarball"
  13.   rm -f "$tarball"
  14. fi
  15.